package star.cloud.asme.base.utils;

public class SymbolSwitcher {


    public static String certificationMethodSwitcher(String method) {
        return switch (method) {
            case "RT" -> "射线检测";
            case "UT" -> "超声检测";
            case "MT" -> "磁粉检测";
            case "PT" -> "渗透检测";
            case "LT" -> "泄漏检测";
            case "ET" -> "涡流检测";
            case "VT" -> "目视检测";
            default -> "没有指定";
        };
    }

    public static String certificationMethodSwitcherR(String methodStr) {
        return switch (methodStr) {
            case "射线检测" -> "RT";
            case "超声检测" -> "UT";
            case "磁粉检测" -> "MT";
            case "渗透检测" -> "PT";
            case "泄漏检测" -> "LT";
            case "涡流检测" -> "ET";
            case "目视检测" -> "VT";
            default -> "没有指定";
        };
    }
}